package com.tengfei.main.index.service;

import com.tengfei.common.core.domain.PageQuery;
import com.tengfei.common.core.page.TableDataInfo;
import com.tengfei.main.index.domain.bo.BannerBo;
import com.tengfei.main.index.domain.vo.BannerVo;
import org.springframework.web.multipart.MultipartFile;

/**
 * 轮播图Service接口
 *
 * @author tengfei
 * @date 2022-09-03
 */
public interface IBannerService {

    /**
     * 查询轮播图
     */
    BannerVo queryById(Long bnId);

    /**
     * 查询轮播图列表
     */
    TableDataInfo<BannerVo> queryPageList(BannerBo bo, PageQuery pageQuery);


    /**
     * 修改轮播图
     */
    Boolean updateByBo(BannerBo bo);

    /**
     * 校验并批量删除轮播图信息
     */
    Boolean deleteWithValidByIds(Long bnId);

    /**
     * 上传轮播图
     */
    BannerVo uploadBannerImg(MultipartFile file);
}
